const {
    Schema,
    model
} = require('mongoose');
// 配置数据模型
const TypInSchema = new Schema({
    communtiyId: {
        type: Schema.Types.ObjectId,
        ref: "communityModel"
    },
    room: {
        type: Schema.Types.ObjectId,
        ref: "ownerModel"
    },
    setNameId: {
        type: Schema.Types.ObjectId,
        ref: "paySetModel"
    },
    count: String,
    time: String,
    startKey: String,
    endKey: String,
    shouldPay: String,
    prestore: String,
    chargeState: String,

}, {
    versionKey: false
});

const TypInModel = model('TypInModel', TypInSchema, 'TypIn');

//暴露出去
module.exports = {
    TypInModel
}

/*
项目类别
项目名称 名称是属于类别
*/